GlobalRates
METADATA
Attribute | Value |
---|---|
Topic | 3585-option-pricing |
MLink Token | GlobalDefinition |
Product | SRAnalytics |
accessType | SELECT |
Table Definition
Field | Type | Key | Default Value | Comment |
---|---|---|---|---|
rateSource | enum - RateSource | PRI | 'Default' | |
timestamp | DATETIME(6) | '1900-01-01 00:00:00.000000' | ||
CurveList | JSON | 'JSON_OBJECT()' |
PRIMARY KEY DEFINITION (Unique)
Field | Sequence |
---|---|
rateSource | 1 |
JSON Block (CurveList)
Field | Type | Comment |
---|---|---|
days | int | calendar days to expiration actual365 days per year |
rate | float |
CREATE TABLE EXAMPLE QUERY
CREATE TABLE `SRAnalytics`.`MsgGlobalRates` (
`rateSource` ENUM('Default','OIS','SOFR','SpxBox','StoxxBox','Test1','Test2','ESTR') NOT NULL DEFAULT 'Default',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
`CurveList` JSON NOT NULL DEFAULT JSON_OBJECT() CHECK(JSON_VALID(CurveList)),
PRIMARY KEY USING HASH (`rateSource`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';
SELECT TABLE EXAMPLE QUERY
SELECT
`rateSource`,
`timestamp`,
`CurveList`
FROM `SRAnalytics`.`MsgGlobalRates`
WHERE
/* Replace with a ENUM('Default','OIS','SOFR','SpxBox','StoxxBox','Test1','Test2','ESTR') */
`rateSource` = 'Default';
Doc Columns Query
SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='GlobalRates' ORDER BY ordinal_position ASC;